#if !defined(AFX_DSOCKET_H__B098630F_5F44_11D6_8897_000B2B0F84B6__INCLUDED_)
#define AFX_DSOCKET_H__B098630F_5F44_11D6_8897_000B2B0F84B6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


#define LOCA_PORT_VIDEO	  6666
#define PEER_PORT_VIDEO   3000


/////////////////////////////////////////////////////////////////////////////
// DSocket command target

class DSocket : public CSocket
{
// Attributes
public:
	
	CDialog *pdlg;
	char localname[200];
	char remotename[500];
	char remoteaddress[500];

	static unsigned char vdata[30000];
	static unsigned int vlength;
	
// Operations
public:

	DSocket();
	virtual ~DSocket();	
	void CreateSocket(int port);
	void SetParent(CDialog *dlg);
	void OnReceive(int errcode);
	void SendVideoData(unsigned char *data,int length);
	void CloseSocket();


};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DSOCKET_H__B098630F_5F44_11D6_8897_000B2B0F84B6__INCLUDED_)
